namespace ghost
{    
    export class EffectType{
        public _id:number;
        public _name:string;
        constructor(id:number, name:string)
        {
            var s = this;
            s._id = id;
            s._name = name;
        }
        public toString():string
        {
            return this._id+"";
        }
        public toJSON():number
        {
            return this._id;
        }
        public static getTypeById(id:number):EffectType
        {   
            if(id == 1)
                return EffectType.ATTACK;            
            return EffectType.SINGLE;
        }
        
        /**单体受击特效*/public static readonly SINGLE = new EffectType(0, "单体受击特效");          
        /**攻击特效*/public static readonly ATTACK = new EffectType(1, "攻击特效");           
        /**buff特效*/public static readonly BUFF = new EffectType(99, "buff特效");
    }
}